package com.wn55.hrms.mapper;

import com.wn55.hrms.entity.Need;
import com.wn55.hrms.entity.Trainer;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface NeedMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Need record);

    Need selectByPrimaryKey(Integer id);

    List<Need> selectAll();

    int updateByPrimaryKey(Need record);


    List<Need> selectByName(String name);


    void update(Need need);
}